//
//  ImagePicker.h
//  PigMarket
//
//  Created by mac on 2019/7/22.
//  Copyright © 2019 pigmarket.oc. All rights reserved.
//

#import <UIKit/UIKit.h>



typedef void (^TakeCameraSuccBlock)(UIImage *photos);
@interface ImagePicker : UIView
/**
 是否在内部显示拍照按钮
 */
@property (nonatomic , assign) BOOL allowTakePicture;
/**
 在内部显示拍视频按钮
 */
@property (nonatomic , assign) BOOL allowTakeVideo;
/**
 视频最大拍摄时间
 */
@property (nonatomic , assign) NSUInteger videoMaximumDuration;
/**
 完成按钮颜色
 */
@property (nonatomic , strong) NSString *doneBtnClolor;
/**
 选择图片数
 */
@property (nonatomic , assign) NSInteger maxImages;
/**
 是否允许裁剪
 */
@property (nonatomic , assign) BOOL allowCrop;
/**
 圆形裁剪
 */
@property (nonatomic , assign) BOOL needCircleCrop;
/**
 裁剪范围
 */
@property (nonatomic , assign) CGRect cropRect;
/**
 设置相机是否可以裁剪
 */
@property (nonatomic , assign) BOOL cameraAllowsEditing;
/**
 takeCameraSuccBlock
 */
@property (nonatomic , copy) TakeCameraSuccBlock takeCameraSuccBlock;

- (void)takeCameraCallBack:(void(^)(UIImage *photos))callBack;

- (void)openAlbumCallBack:(void(^)(NSArray<UIImage *> *photos,NSArray *assets))callBack;
@end

